<?php


namespace App\Extensions\Actions\Links;


class LayerIconEdit
{
    protected $href;
    protected $width;
    protected $height;
    public function __construct($href,$width='1000',$height='800')
    {
        $this->href = $href;
        $this->width = $width?:'';
        $this->height = $height?:'';
    }

    public function __toString(): string
    {
        return <<<EOT
  <a title="编辑" style="white-space:nowrap;" href="javascript:;" onclick="layer_show('编辑','{$this->href}','{$this->width}','{$this->height}')">
    <i class="fa fa-edit"></i>
</a>
EOT;
    }

}
